package com.zzl.bonds.ticket.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 核心企业授信表
 *
 * @author sunpp
 * @date 2022-02-16 11:14:07
 */
@Data
@ApidocModel
@SuppressWarnings("javadoc")
public class CoreEnterpriseCreditAddDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApidocModelProperty(description = "额度编号", example = "")
    private String creditNo;
    @ApidocModelProperty(description = "企业id，即集团的企业id", example = "")
    private String enterpriseId;
    @ApidocModelProperty(description = "企业名称", example = "")
    private String enterpriseName;
    @ApidocModelProperty(description = "金融机构id", example = "")
    private Integer financeInstitutyId;
    @ApidocModelProperty(description = "总金额", example = "")
    private Double creditAllAmount;
    @ApidocModelProperty(description = "可用金额", example = "")
    private Double creditAvailableAmount;
    @ApidocModelProperty(description = "冻结额度 ", example = "")
    private Double creditFrozenAmount;
    @ApidocModelProperty(description = "1 开立授信 2 融资授信", example = "")
    private Integer creditType;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "生效日期", validate = "yyyy-MM-dd HH:mm:ss")
    private Date effectiveDate;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "失效日期", validate = "yyyy-MM-dd HH:mm:ss")
    private Date expiryDate;
    @ApidocModelProperty(description = "授信状态10：审核中 20：审核通过 30：审核驳回", example = "")
    private Integer creditStatus;
    @ApidocModelProperty(description = "排序编号", example = "")
    private Integer sortNum;
    @ApidocModelProperty(description = "状态：1 最新数据，0 历史数据", example = "")
    private Integer intitutyCreditStatus;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ApidocModelProperty(description = "创建人", example = "")
    private Integer creatorId;
    @ApidocModelProperty(description = "1 表示删除，0 表示未删除", example = "")
    private Integer isDeleted;

}
